﻿using BLL;
using Newtonsoft.Json.Linq;
using System;

namespace Thksoft.UserCotrols
{
    public partial class CtrlMonthDepartment2 : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            QS_PLANMonth_DEPARTMENTBLL planMontDepartmentBll = new QS_PLANMonth_DEPARTMENTBLL();
            //BUSINESS_ID 转 ApplayId
            QS_PLANMONTHAPPLYBLL planMonthApplyBll = new QS_PLANMONTHAPPLYBLL();
            var bid = Request.Params.Get("BusinessId");
            var applay = planMonthApplyBll.FindByBuid(Convert.ToInt32(bid));
            ApplyId = applay.N_MONTHAPP_ID.ToString();
            Model = planMontDepartmentBll.GetDataByApplyId((int)applay.N_MONTHAPP_ID);
        }

        public JArray Model = null;

        protected void ReLoadBtn_Click(object sender, EventArgs e)
        {
        }

        public string ApplyId;
    }
}